<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	String est_no	= StringUtil.nvl(request.getParameter("est_no"));
	String est_seq 	= StringUtil.nvl(request.getParameter("est_seq"));

	HashMap param = new HashMap();
	param.put("est_no", est_no);
	param.put("est_seq", est_seq);

	HashList list = DBManager.executeQuery("/sales.xml", "select_fly_voucher", param);
	HashList seatList = DBManager.executeQuery("/sales.xml", "select_fly_seat", param);
%>
<html>
<style type="text/css">
<!--
.vc_basic {
	font-family: Verdana, Arial, "굴림";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 16px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
}
.style1 {
	font-size: 16px;
	font-weight:bold;
}
input {
	border-top:0px;
	border-left:0px;
	border-right:0px;
	border-bottom:0px solid #000;
	text-align:center;
	width:100%;
}
.blue {
	color:blue;
}
.confirm_no {
	font-size: 24px;
	font-weight:bold;
	color:red;
}
.bold {
	font-weight:bold;
}
-->
</style>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/common2.js"></script>
<script>
	$(document).ready(function() {
	<%	if ("".equals(session_dept_code)) { %>
		$('input[type="text"]').each(function(){
			$(this).closest('td').html($(this).val());
		});
	<%	}	%>
	});


	function fnSaveVoucher() {
		$('#saveForm').submit();
	}
</script>
</head>
<body>
<div class="print" style="text-align:right; padding:5px;">
	<a href="#nohref" onclick="cfPrint()"><img src="/images/icon/btn_print.gif" border="0"/></a>
<%	if (!"".equals(session_dept_code)) { %>
	<a href="#nohref" onclick="fnSaveVoucher()"><img src="/images/icon/btn_save.gif" border="0"/></a>
<%	} %>
	<a href="#nohref" onclick="self.close()"><img src="/images/icon/btn_close.gif" border="0"/></a>
</div>
<form name="saveForm" id="saveForm" method="post" action="/admin/sales/voucherSave.do">
<input type="hidden" name="voucher_gubn" value="fly"/>
<input type="hidden" name="est_no" value="<%=est_no %>"/>
<input type="hidden" name="est_seq" value="<%=est_seq %>"/>
<table width="869" height="1300" border="1" bordercolor="#999999" cellspacing="0" cellpadding="0">
  <tr>
    <td background="img/bg.jpg" style="background-repeat:no-repeat; background-position:bottom;"><table width="869" cellpadding="0" cellspacing="0">
      <tr>
        <td height="154" align="center"><img src="img/hawaiian_title.jpg" width="323" height="84"></td>
      </tr>
      <tr>
        <td height="858"><table width="829" height="1074" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="829"><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td bgcolor="#9c9c9c"></td>
              </tr>
              <tr>
                <td width="253" height="57" align="center" bgcolor="#f0f0f0"><img src="img/primary_01.jpg"  height="17"></td>
                <td align="center" class="vc_basic confirm_no"><input type="text" name="confirm_no" class="confirm_no" value="<%= list.get("confirm_no", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#9c9c9c"></td>
                <td bgcolor="#9c9c9c"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <td><img src="img/aloha.jpg" width="48" height="16"></td>
          </tr>
          <tr>
            <td height="16"></td>
          </tr>
          <tr>
            <td height="1"><img src="img/seat.jpg" width="166" height="21"></td>
          </tr>
          <tr>
            <td height="15"></td>
          </tr>
          <tr>
            <td height="110"><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
        <%	if (!"".equals(list.get("transfer_time",0))) { %>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
        <%	} %>
              </tr>
              <tr>
                <td width="323" height="35" align="center"  class="vc_basic style1">NAME</td>
                <td width="1" bgcolor="#b3b3b3"></td>
                <td width="252" align="center"  class="vc_basic style1"><input type="text" name="from_name" class="vc_basic style1" value="<%= list.get("from_name", 0) %>"/></td>
        <%	if (!"".equals(list.get("transfer_time",0))) { %>
                <td width="1" bgcolor="#b3b3b3"></td>
                <td width="252" align="center"  class="vc_basic style1"><input type="text" name="transfer_name" class="vc_basic style1" value="<%= list.get("transfer_name", 0) %>"/></td>
        <%	} %>
                <td width="1" bgcolor="#b3b3b3"></td>
                <td width="252" align="center"  class="vc_basic style1"><input type="text" name="to_name" class="vc_basic style1" value="<%= list.get("to_name", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b3b3b3"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
        <%	if (!"".equals(list.get("transfer_time",0))) { %>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
        <%	} %>
              </tr>
     	<%	for (int i = 0; i < seatList.size(); i++) { %>
               <tr>
                <td height="35" align="center" class="vc_basic">
                	<input type="hidden" name="seat.est_no" value="<%= seatList.get("est_no", i) %>"/>
                	<input type="hidden" name="seat.est_seq" value="<%= seatList.get("est_seq", i) %>"/>
                	<input type="hidden" name="seat.seat_seq" value="<%= seatList.get("seat_seq", i) %>"/>
                	<input type="text" name="seat.customer_name" value="<%= seatList.get("customer_name", i) %>"/>
                </td>
                <td bgcolor="#b3b3b3"></td>
                <td align="center" class="vc_basic"><input type="text" name="seat.from_seat_name" value="<%= seatList.get("from_seat_name", i) %>"/></td>
        <%	if (!"".equals(list.get("transfer_time",0))) { %>
                <td bgcolor="#b3b3b3"></td>
                <td align="center" class="vc_basic"><input type="text" name="seat.transfer_seat_name" value="<%= seatList.get("transfer_seat_name", i) %>"/></td>
        <%	} %>        
                <td bgcolor="#b3b3b3"></td>
                <td align="center" class="vc_basic"><input type="text" name="seat.to_seat_name" value="<%= seatList.get("to_seat_name", i) %>"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b3b3b3"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
        <%	if (!"".equals(list.get("transfer_time",0))) { %>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
        <%	} %>
              </tr>
		<%	} %>
            </table></td>
          </tr>
          <tr>
            <td height="40"></td>
          </tr>
          <tr>
            <td height="1"><img src="img/itinerary.jpg" width="136" height="16"></td>
          </tr>
          <tr>
            <td height="20"></td>
          </tr>
          <tr>
            <td height="16" align="center" class="vc_basic style1 blue"><b><input type="text" class="vc_basic style1 blue" name="from_date" value="<%= list.get("from_date", 0) %>"/></b></td>
          </tr>
          <tr>
            <td height="16"></td>
          </tr>
          <tr>
            <td height="218"><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="105" height="2" bgcolor="#9c9c9c"></td>
                <td width="300" height="2" bgcolor="#9c9c9c"></td>
                <td width="105" height="2" bgcolor="#9c9c9c"></td>
                <td width="300" height="2" bgcolor="#9c9c9c"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_05.jpg" ></td>
                <td align="center"><input type="text" name="from_from_name" class="bold" value="<%= list.get("from_from_name", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_11.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_to_name" class="bold" value="<%= list.get("from_to_name", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_06.jpg" ></td>
                <td align="center"><input type="text" name="from_depart" class="bold" value="<%= list.get("from_depart", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_12.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_arrive" class="bold" value="<%= list.get("from_arrive", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_07.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_from_terminal" value="<%= list.get("from_from_terminal", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_13.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_to_terminal" value="<%= list.get("from_to_terminal", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_08.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_flight" value="<%= list.get("from_flight", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_14.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_duration" value="<%= list.get("from_duration", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_09.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_cabin" value="<%= list.get("from_cabin", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_15.jpg" alt="" width="47" height="17"></td>
                <td align="center"><input type="text" name="from_meals" value="<%= list.get("from_meals", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_13.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_aircraft" value="<%= list.get("from_aircraft", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_16.jpg" alt="" ></td>
                <td align="center"><input type="text" name="from_carrier" value="<%= list.get("from_carrier", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
              </tr>
            </table></td>
          </tr>
          
    
        <%	if (!"".equals(list.get("transfer_time",0))) { %>      
          <tr>
            <td height="40"></td>
          </tr>
          <tr>
            <td height="16" align="center" class="vc_basic style1 blue"><b><input type="text" class="vc_basic style1 blue" name="transfer_date" value="<%= list.get("transfer_date", 0) %>"/></b></td>
          </tr>
          <tr>
            <td height="16"></td>
          </tr>
          <tr>
            <td height="218"><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="105" height="2" bgcolor="#9c9c9c"></td>
                <td width="300" height="2" bgcolor="#9c9c9c"></td>
                <td width="105" height="2" bgcolor="#9c9c9c"></td>
                <td width="300" height="2" bgcolor="#9c9c9c"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_05.jpg" ></td>
                <td align="center"><input type="text" name="transfer_from_name" class="bold" value="<%= list.get("transfer_from_name", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_11.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_transfer_name" class="bold" value="<%= list.get("transfer_transfer_name", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_06.jpg" ></td>
                <td align="center"><input type="text" name="transfer_depart" class="bold" value="<%= list.get("transfer_depart", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_12.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_arrive" class="bold" value="<%= list.get("transfer_arrive", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_07.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_from_terminal" value="<%= list.get("transfer_from_terminal", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_13.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_transfer_terminal" value="<%= list.get("transfer_transfer_terminal", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_08.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_flight" value="<%= list.get("transfer_flight", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_14.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_duration" value="<%= list.get("transfer_duration", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_09.jpg" alt=""></td>
                <td align="center"><input type="text" name="transfer_cabin" value="<%= list.get("transfer_cabin", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_15.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_meals" value="<%= list.get("transfer_meals", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_13.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_aircraft" value="<%= list.get("transfer_aircraft", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_16.jpg" alt="" ></td>
                <td align="center"><input type="text" name="transfer_carrier" value="<%= list.get("transfer_carrier", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
              </tr>
            </table></td>
          </tr>
        <% } %>  
          
          <tr>
            <td height="40"></td>
          </tr>
          <tr>
            <td height="16" align="center" class="vc_basic style1 blue"><b><input type="text" class="vc_basic style1 blue" name="to_date" value="<%= list.get("to_date", 0) %>"/></b></td>
          </tr>
          <tr>
            <td height="16"></td>
          </tr>
          <tr>
            <td height="218"><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="105" height="2" bgcolor="#9c9c9c"></td>
                <td width="300" height="2" bgcolor="#9c9c9c"></td>
                <td width="105" height="2" bgcolor="#9c9c9c"></td>
                <td width="300" height="2" bgcolor="#9c9c9c"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_05.jpg" ></td>
                <td align="center"><input type="text" name="to_from_name" class="bold" value="<%= list.get("to_from_name", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_11.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_to_name" class="bold" value="<%= list.get("to_to_name", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_06.jpg" ></td>
                <td align="center"><input type="text" name="to_depart" class="bold" value="<%= list.get("to_depart", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_12.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_arrive" class="bold" value="<%= list.get("to_arrive", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_07.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_from_terminal" value="<%= list.get("to_from_terminal", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_13.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_to_terminal" value="<%= list.get("to_to_terminal", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_08.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_flight" value="<%= list.get("to_flight", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_14.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_duration" value="<%= list.get("to_duration", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_09.jpg" alt=""></td>
                <td align="center"><input type="text" name="to_cabin" value="<%= list.get("to_cabin", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_15.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_meals" value="<%= list.get("to_meals", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
                <td height="1" align="center" bgcolor="#efefef"></td>
                <td height="1" align="center"></td>
              </tr>
              <tr>
                <td height="35" align="center" bgcolor="#efefef"><img src="img/primary_13.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_aircraft" value="<%= list.get("to_aircraft", 0) %>"/></td>
                <td align="center" bgcolor="#efefef"><img src="img/primary_16.jpg" alt="" ></td>
                <td align="center"><input type="text" name="to_carrier" value="<%= list.get("to_carrier", 0) %>"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
              </tr>
            </table></td>
          </tr>
          
          
          <tr>
            <td height="65"></td>
          </tr>
          <tr>
            <td height="116" align="center"><img src="img/primary_bottom.png" width="616" height="15"></td>
          </tr>


        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
 </html>
